package com.myplaylist.server;

public class StartServer {

	private void start() {
		try {
			Thread udpMessageHandler = new Thread(new UdpServerIPHandler());
			udpMessageHandler.start();
			Thread tcpUserDataCollectorThread = new Thread(new TcpUserDataCollectorThread());
			tcpUserDataCollectorThread.start();
		} catch (Exception e) {
			System.err.println("ERROR:");
		}
	}
	
	public static void main(String[] args) {
		new StartServer().start(); 
		
	}
}
